//
//  NSMutableDictionary+Cool.m
//  CoolFramework
//
//  Created by Felix on 13-3-29.
//  Copyright (c) 2013年 Xue Fei. All rights reserved.
//

#import "NSMutableDictionary+Cool.h"

@implementation NSMutableDictionary (Cool)

- (void)setObject:(id)anObject forKey:(id<NSCopying>)aKey defaultValue:(id)defaultValue {
    if (!aKey) {
        return;
    }
    if (anObject) {
        self[aKey] = anObject;
    } else if (defaultValue) {
        self[aKey] = defaultValue;
    }
}

@end
